package org.micropayment.model.data;

import javax.xml.crypto.dsig.SignatureMethod;
import org.micropayment.model.ProviderResource;
import org.micropayment.model.TypeOfSecret;

/**
 *
 * @author jj
 */
public class ProviderData {

    public static ProviderResource getProviderResource () {
        ProviderResource providerResource = new ProviderResource("InternetBank",
                "bookstore1-consumer-key", "secret1", "http://localhost:8080/MicropaymentProvider-1.0-SNAPSHOT/oauth/request_token",
                "http://localhost:8080/MicropaymentProvider-1.0-SNAPSHOT/oauth/confirm_access",
                "http://localhost:8080/MicropaymentProvider-1.0-SNAPSHOT/oauth/access_token");
        providerResource.setSignatureMethod(SignatureMethod.HMAC_SHA1);
        providerResource.setTypeofsecret(TypeOfSecret.SharedConsumerSecret);
        providerResource.setRequestTokenURL("http://localhost:8080/MicropaymentProvider-1.0-SNAPSHOT/oauth/request_token");
        providerResource.setRequestTokenHttpMethod("POST");
        providerResource.setUserAuthorizationURL("http://localhost:8080/MicropaymentProvider-1.0-SNAPSHOT/oauth/confirm_access");
        providerResource.setAccessTokenURL("http://localhost:8080/MicropaymentProvider-1.0-SNAPSHOT/oauth/access_token");
        providerResource.setAccessTokenHttpMethod("POST");
        providerResource.setAcceptsAuthorizationHeader(Boolean.TRUE);
        providerResource.setUse10a(Boolean.TRUE);
        return providerResource;
    }

}
